<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>添加机构</h2>
    </div>
    <form action="{:U()}" method="post" class="form-horizontal" enctype="multipart/form-data">
        <div class="form-item">
            <div class="controls">
            手机号码：
                <input type="text" class="text input-large" name="phone">
            </div>
        </div>
        <div class="form-item">
            <div class="controls">
            密码：
                <input type="text" class="text input-large" name="password">
            </div>
        </div>

        <div class="form-item">
            <button class="btn" type="submit" id="button" target-form="form-horizontal">确 定</button>
            <button class="btn" onclick="javascript:history.back(-1);return false;">返 回</button>
        </div>
    </form>
</block>

<block name="script">
    <script type="text/javascript" src="__STATIC__/jquery-2.0.3.min.js"></script>
    <script type="text/javascript">
            function previewFile() {
              var preview = document.querySelector('img');
              var file    = document.querySelector('input[type=file]').files[0];
              
              var reader  = new FileReader();

              reader.onloadend = function () {
                preview.src = reader.result;

              }
              if (file) {
                reader.readAsDataURL(file);
              } else {
                preview.src = "";
              }
            }
        //导航高亮
        highlight_subnav('{:U('User/index')}');
    </script>
</block>
